﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Finance/FinanceMaster.master" AutoEventWireup="true" 
	CodeBehind="AccountTradingStyleList.aspx.cs" Inherits="WebApplication.Finance.AccountTradingStyleList" Theme="BaselineTheme" %>

<%@ Register src="../Controls/PageHeadingBarCtrl.ascx" tagname="PageHeadingBarCtrl" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<!-- Heading bar -->
<div style="margin:auto; margin-top:0px; width:760px;">
	<uc1:PageHeadingBarCtrl ID="pageHeadingBarCtrl" runat="server" Title="Account Trading Styles" />
</div>

<div style="margin:auto; margin-top:10px;">
	<asp:GridView ID="gridTradingStyle" runat="server" AutoGenerateColumns="False" 
		HorizontalAlign="Center" DataKeyNames="AccountTradingStyleId" 
		GridLines="None" BorderStyle="None" CellPadding="4" Font-Names="Verdana" 
		onrowdatabound="gridTradingStyle_RowDataBound"
		onrowcommand="gridTradingStyle_RowCommand" >
	<Columns>
		<asp:TemplateField HeaderText="Trading Style">
			<HeaderStyle HorizontalAlign="Left" Width="140" />
			<ItemTemplate>
				<asp:TextBox ID="txtName" runat="server" Width="200" MaxLength="50"></asp:TextBox>
			</ItemTemplate>
		</asp:TemplateField>
		<asp:BoundField DataField="InUseAsText" HeaderText="In Use">
			<HeaderStyle HorizontalAlign="Center" />
			<ItemStyle HorizontalAlign="Center" Width="80px" />
		</asp:BoundField>
		<asp:BoundField DataField="ModifiedAsText" HeaderText="Modified" >
			<HeaderStyle HorizontalAlign="Left" />
			<ItemStyle HorizontalAlign="Left" Font-Size="10px" Width="100px" Wrap="true" />
		</asp:BoundField>
		<asp:ButtonField ButtonType="Button" Text="Delete..." CommandName="DeleteStyle" />
	</Columns>		
	<HeaderStyle Font-Size="11pt" Font-Bold="True" Font-Names="Arial"  HorizontalAlign="Left" />
	<RowStyle Font-Size="11pt" Font-Bold="False" Font-Names="Arial" CssClass="UnderlineBorder" />
	</asp:GridView>
</div>
<!-- Add a new status -->
<div style="margin:auto; margin-top:10px; width:520px; text-align:left; padding-left:28px;">
	<asp:Label runat="server" Text="Add New Status" CssClass="GridColumnLabel" /><br />
	<asp:TextBox ID="txtNewName" runat="server" Width="200" MaxLength="50"></asp:TextBox>
	<asp:Button ID="butAddNew" runat="server" Text="Add" onclick="butAddNew_Click" />
</div>
<!-- Buttons -->
<div style="margin:auto; margin-top:10px; width:460px; text-align:right; padding-right:22px;">
	<asp:Button ID="butOK" runat="server" Text="Save" onclick="butOK_Click" />&nbsp;<asp:Button ID="butRevert" runat="server" Text="Revert" onclick="butRevert_Click" />
</div>
<!-- Links -->
<div style="margin:auto; margin-top:10px; width:460px; text-align:right">
	<asp:HyperLink ID="HypButton2" runat="server" CssClass="BaselineLinkStyle" Text="Workflows..." NavigateUrl="~/Finance/Workflows.aspx" /><br />
	<asp:HyperLink ID="HypButton1" runat="server" CssClass="BaselineLinkStyle" Text="Default workflow assignments..." NavigateUrl="~/Finance/ClientWorkflowAssignmentDefault.aspx" />
</div>

</asp:Content>
